package com.baosight.sczx.zm.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCA2000 table comment : 初始数据明细
 */

public class ZM91 extends DaoEPBase {

	private String fdNo = "";
	private String fdName = "";
	private String fdUserId = "";
	private String fdOrgCode = "";
	private String fdValue = "";
	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdInitialDataId = " "; /* 初始数据ID */
	private Long fdSerialNumber = new Long(0); /* 序号 */
	private String fdDetailsName = " "; /* 名称 */
	private Long fdType = new Long(0); /* 类型 */
	private Long fdStatus = new Long(0); /* 状态 */
	private String fdCreatorId = " "; /* 编制人ID */
	private String fdDepartmentId = " "; /* 编制单位ID */
	private String fdUpdaterId = " "; /* 修改人ID */
	private String fdUpdateDpId = " "; /* 修改单位ID */
	private String fdRemarks = " "; /* 备注 */
	private String fdModuleName = " ";		/* 模块名称*/
	private String fdModuleId = " ";		/* 模块ID*/
	private String fdIshyperlink = " ";		/* 是否有超链接*/
	private String fdHyperlinkName = " ";		/* 超链接name*/
	private String fdHyperlinkViewName = " ";		/* 超链接name*/

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdNo");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("fdNo");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdName");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("fdName");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUserId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("fdUserId");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdOrgCode");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("fdOrgCode");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValue");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("fdValue");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInitialDataId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("初始数据ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSerialNumber");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("序号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDetailsName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdType");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(38);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreatorId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUpdaterId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("修改人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUpdateDpId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("修改单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(254);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdModuleName");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("模块名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdModuleId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("模块ID");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdIshyperlink");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("是否有超链接");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdHyperlinkName");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("超链接name");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdHyperlinkViewName");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("超链接VIEWname");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZM91() {
		initMetaData();
	}

	public String getFdNo() {
		return this.fdNo;
	}

	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}

	public String getFdName() {
		return this.fdName;
	}

	public void setFdName(String fdName) {
		this.fdName = fdName;
	}

	public String getFdUserId() {
		return this.fdUserId;
	}

	public void setFdUserId(String fdUserId) {
		this.fdUserId = fdUserId;
	}
	
	public String getFdOrgCode() {
		return this.fdOrgCode;
	}

	public void setFdOrgCode(String fdOrgCode) {
		this.fdOrgCode = fdOrgCode;
	}

	public String getFdValue() {
		return this.fdValue;
	}

	public void setFdValue(String fdValue) {
		this.fdValue = fdValue;
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdInitialDataId - 初始数据ID
	 * 
	 * @return the fdInitialDataId
	 */
	public String getFdInitialDataId() {
		return this.fdInitialDataId;
	}

	/**
	 * set the fdInitialDataId - 初始数据ID
	 */
	public void setFdInitialDataId(String fdInitialDataId) {
		this.fdInitialDataId = fdInitialDataId;
	}

	/**
	 * get the fdSerialNumber - 序号
	 * 
	 * @return the fdSerialNumber
	 */
	public Long getFdSerialNumber() {
		return this.fdSerialNumber;
	}

	/**
	 * set the fdSerialNumber - 序号
	 */
	public void setFdSerialNumber(Long fdSerialNumber) {
		this.fdSerialNumber = fdSerialNumber;
	}

	/**
	 * get the fdName - 名称
	 * 
	 * @return the fdName
	 */
	public String getFdDetailsName() {
		return this.fdDetailsName;
	}

	/**
	 * set the fdName - 名称
	 */
	public void setFdDetailsName(String fdDetailsName) {
		this.fdDetailsName = fdDetailsName;
	}

	/**
	 * get the fdType - 类型
	 * 
	 * @return the fdType
	 */
	public Long getFdType() {
		return this.fdType;
	}

	/**
	 * set the fdType - 类型
	 */
	public void setFdType(Long fdType) {
		this.fdType = fdType;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public Long getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(Long fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdCreatorId - 编制人ID
	 * 
	 * @return the fdCreatorId
	 */
	public String getFdCreatorId() {
		return this.fdCreatorId;
	}

	/**
	 * set the fdCreatorId - 编制人ID
	 */
	public void setFdCreatorId(String fdCreatorId) {
		this.fdCreatorId = fdCreatorId;
	}

	/**
	 * get the fdDepartmentId - 编制单位ID
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 编制单位ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdUpdaterId - 修改人ID
	 * 
	 * @return the fdUpdaterId
	 */
	public String getFdUpdaterId() {
		return this.fdUpdaterId;
	}

	/**
	 * set the fdUpdaterId - 修改人ID
	 */
	public void setFdUpdaterId(String fdUpdaterId) {
		this.fdUpdaterId = fdUpdaterId;
	}

	/**
	 * get the fdUpdateDpId - 修改单位ID
	 * 
	 * @return the fdUpdateDpId
	 */
	public String getFdUpdateDpId() {
		return this.fdUpdateDpId;
	}

	/**
	 * set the fdUpdateDpId - 修改单位ID
	 */
	public void setFdUpdateDpId(String fdUpdateDpId) {
		this.fdUpdateDpId = fdUpdateDpId;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdModuleName - 模块名称
	 * @return the fdModuleName
	 */
	public String getFdModuleName() {
		return this.fdModuleName;
	}
	
	/**
	 * set the fdModuleName - 模块名称
	 */
	public void setFdModuleName(String fdModuleName) {
		this.fdModuleName = fdModuleName;
	}
	
	/**
	 * get the fdModuleId - 模块ID
	 * @return the fdModuleId
	 */
	public String getFdModuleId() {
		return this.fdModuleId;
	}
	
	/**
	 * set the fdModuleId - 模块ID
	 */
	public void setFdModuleId(String fdModuleId) {
		this.fdModuleId = fdModuleId;
	}
	
	/**
	 * get the fdIshyperlink - 是否有超链接
	 * @return the fdIshyperlink
	 */
	public String getFdIshyperlink() {
		return this.fdIshyperlink;
	}
	
	/**
	 * set the fdIshyperlink - 是否有超链接
	 */
	public void setFdIshyperlink(String fdIshyperlink) {
		this.fdIshyperlink = fdIshyperlink;
	}
	
	/**
	 * get the fdHyperlinkName - 超链接name
	 * @return the fdHyperlinkName
	 */
	public String getFdHyperlinkName() {
		return this.fdHyperlinkName;
	}
	
	/**
	 * set the fdIshyperlink - 是否有超链接
	 */
	public void setFdHyperlinkName(String fdHyperlinkName) {
		this.fdHyperlinkName = fdHyperlinkName;
	}

	
	/**
	 * set the fdHyperlinkViewName - 是否有超链接
	 */
	public void setFdHyperlinkViewName(String fdHyperlinkViewName) {
		this.fdHyperlinkViewName = fdHyperlinkViewName;
	}
	
	/**
	 * get the fdHyperlinkViewName - 超链接name
	 * @return the fdHyperlinkViewName
	 */
	public String getFdHyperlinkViewName() {
		return this.fdHyperlinkViewName;
	}
	

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUserId")), fdUserId));
		setFdOrgCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOrgCode")), fdOrgCode));
		setFdValue(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValue")), fdValue));

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdInitialDataId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInitialDataId")), fdInitialDataId));
		setFdSerialNumber(NumberUtils.toLong(StringUtils.toString(map.get("fdSerialNumber")), fdSerialNumber));
		setFdDetailsName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDetailsName")), fdDetailsName));
		setFdType(NumberUtils.toLong(StringUtils.toString(map.get("fdType")), fdType));
		setFdStatus(NumberUtils.toLong(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdCreatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatorId")), fdCreatorId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdUpdaterId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUpdaterId")), fdUpdaterId));
		setFdUpdateDpId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUpdateDpId")), fdUpdateDpId));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		
		setFdModuleName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModuleName")), fdModuleName));
		setFdModuleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModuleId")), fdModuleId));
		setFdIshyperlink(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIshyperlink")), fdIshyperlink));
		setFdHyperlinkName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHyperlinkName")), fdHyperlinkName));
		setFdHyperlinkViewName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHyperlinkViewName")), fdHyperlinkViewName));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdNo", StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));
		map.put("fdName", StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
		map.put("fdUserId", StringUtils.toString(fdUserId, eiMetadata.getMeta("fdUserId")));
		map.put("fdOrgCode", StringUtils.toString(fdOrgCode, eiMetadata.getMeta("fdOrgCode")));
		map.put("fdValue", StringUtils.toString(fdValue, eiMetadata.getMeta("fdValue")));

		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdInitialDataId", StringUtils.toString(fdInitialDataId, eiMetadata.getMeta("fdInitialDataId")));
		map.put("fdSerialNumber", StringUtils.toString(fdSerialNumber, eiMetadata.getMeta("fdSerialNumber")));
		map.put("fdDetailsName", StringUtils.toString(fdDetailsName, eiMetadata.getMeta("fdDetailsName")));
		map.put("fdType", StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdCreatorId", StringUtils.toString(fdCreatorId, eiMetadata.getMeta("fdCreatorId")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdUpdaterId", StringUtils.toString(fdUpdaterId, eiMetadata.getMeta("fdUpdaterId")));
		map.put("fdUpdateDpId", StringUtils.toString(fdUpdateDpId, eiMetadata.getMeta("fdUpdateDpId")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));
		
		map.put("fdModuleName",StringUtils.toString(fdModuleName, eiMetadata.getMeta("fdModuleName")));	
		map.put("fdModuleId",StringUtils.toString(fdModuleId, eiMetadata.getMeta("fdModuleId")));	
		map.put("fdIshyperlink",StringUtils.toString(fdIshyperlink, eiMetadata.getMeta("fdIshyperlink")));
		map.put("fdHyperlinkName",StringUtils.toString(fdHyperlinkName, eiMetadata.getMeta("fdHyperlinkName")));
		map.put("fdHyperlinkViewName",StringUtils.toString(fdHyperlinkViewName, eiMetadata.getMeta("fdHyperlinkViewName")));

		return map;

	}
}